package cc.chinagps.gateway.client.packet.base;

import cc.chinagps.gateway.client.packet.BasePacket;
import cc.chinagps.gateway.client.packet.PacketDecoder;
import lombok.Data;

@Data
public abstract class AbstractPacketDecoder implements PacketDecoder {
    protected BasePacket basePacket;
    public AbstractPacketDecoder(){}
    public AbstractPacketDecoder(BasePacket basePacket) {
        this.basePacket = basePacket;
    }

    public abstract void decodeBusinessData() throws Exception;
}
